package cheme.ProcessEditor.Figures;

import org.eclipse.draw2d.Border;
import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Label;
import org.eclipse.swt.graphics.Color;

import cheme.ProcessEditor.ChemePresentation;

public class ImmutableFieldFig extends Label
{
	public ImmutableFieldFig(String text)
	{
		super(text);
		initPresentation();
	}
	
	protected void initPresentation()
	{
		setOpaque(true);
		setPresentation(ChemePresentation.Fields.immutableBackground, 
						ChemePresentation.Fields.immutableForeground, 
						ChemePresentation.Fields.immutableBorder);
	}
	
	public void setPresentation(Color Background, Color foreground, Border border)
	{
		setBackgroundColor(Background);
		setForegroundColor(foreground);
		setBorder(border);
	}
}
